import request from '@/utils/nodeRequest'
import { base64Encode } from '@/utils/auth'

// Node 确认订单是否过期
export function isBillExpired (data) {
  return request({
    url: '/c/v1.node/customer/isBillExpired',
    method: 'post',
    data: {
      key: base64Encode(data)
    }
  })
}
// Node 车型价格走势图数据v2
export function getPriceTrendBycarId (data) {
  return request({
    url: '/c/v2.node/car/getPriceTrendBycarId',
    method: 'post',
    data: {
      key: base64Encode(data)
    }
  })
}
// Node 根据订单和经销商id 获取历史报价
export function findOffersBydealerId (data) {
  return request({
    url: '/c/v1.node/customer/findOffersBydealerId',
    method: 'post',
    data
  })
}
// Node 根据订单获取报价
export function findOffersById (data) {
  return request({
    url: '/c/v1.node/customer/findOffersById',
    method: 'post',
    data
  })
}